/**
 * Copyright (C) 2014 xspace app Project.
 */

package com.xspace.android.xafcommon.been;

import android.graphics.Bitmap;

import com.temobi.drag.DragMessage;

/**
 * @ClassName: BottomViewInfo
 * @author:qbluo
 * @Date：2014-2-20
 * @version V1.0.0
 * @Description: TODO
 */
public class BottomViewInfo extends DragMessage{
	public Class<?> activity;
	public String packageName;
	public String title;
	public Bitmap selectedId;
	public Bitmap unselectedId;
	public String tabID;
	public int tabSum;
	public String url;
	public String app_url="";
	public String image="";
	public String menuImgSelected = "";
	public String menukey = "";
	public String key = "";
	public String isAndroidApp = "";
	public String isShowOnHomePage = "";
	public String isInstall= "";
	public String menuIndex = "";
	public String date = "";
	public String score = "";
	public BottomViewInfo() {
		super();
	}


	public BottomViewInfo(String activity, String title, Bitmap selectedId,
						  Bitmap unselectedId, String tabID, int tabSum, String url) {
		this.tabID = tabID;
		this.tabSum = tabSum;
		this.packageName = activity;
		this.activity = getClassPath(activity);
		this.title = title;
		this.selectedId = selectedId;
		this.unselectedId = unselectedId;
		this.url = url;
	}
	
	public BottomViewInfo(String menuName, String packageName, String menuImg, String menuImgSelected,
						  String menuUrl, String menuKey, String isAndroidApp, String isShowOnHomePage, String isInstall, String date, String menuIndex, String score){
		this.title = menuName;
		this.packageName = packageName;
		this.image = menuImg;
		this.menuImgSelected = menuImgSelected;
		this.url = menuUrl;
		this.key = menuKey;
		this.isAndroidApp = isAndroidApp;
		this.isShowOnHomePage = isShowOnHomePage;
		this.isInstall = isInstall;
		this.menuIndex = menuIndex;
		this.date = date;
		this.score = score;
	}

	public BottomViewInfo(String activity, String title, String tabID, int tabSum, String url, String image, String key) {
		this.tabID = tabID;
		this.tabSum = tabSum;
		this.packageName = activity;
		this.title = title;
		this.url = url;
		this.image=image;
		this.key = key;
	}
	public BottomViewInfo(String activity, String title, String app_url
			, String image) {
	
		this.packageName = activity;
		this.title = title;
		this.app_url = app_url;
		this.image=image;
	}
	public Class<?> getClassPath(String activity) {
		try {
			return Class.forName(activity);
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}
}
